home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 27 / CU Amiga Magazine's Super CD-ROM 27 (1998)(EMAP Images)(GB)[!][issue 1998-10].iso / CUCD / Programming / FreshBar / Source / FreshBar_ARexxPort.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-29  |  2.0 KB  |  62 lines

  1. //****************************************************************//
  2. // Filename:    FreshBar_ARexxPort.h
  3. // Autor:       Christian Taulien of Strange Intelligence
  4. // Purpose:     Definition of the FreshBar-ARexx-Port
  5. // Creation:    10. Mai 1998
  6. //****************************************************************//
  7. #ifndef FRESHBAR_AREXXPORT_H
  8. #define FRESHBAR_AREXXPORT_H
  9.  
  10. #include "ARexxPort.h"
  11. #include "SIFC_Strings.h"
  12.  
  13. enum { RXID_QUIT, RXID_INFO, RXID_TEST, RXID_CREATEWIN, RXID_DELETEWIN,
  14.        RXID_OPENWIN, RXID_CLOSEWIN, RXID_ADDBAR, RXID_REMBAR, RXID_CLOSEALL,
  15.        RXID_SETCURVAL, RXID_SETMAXVAL, RXID_SETFILLPEN, RXID_SETBACKPEN,
  16.        RXID_SETPROGRESSMODE, RXID_SETWINWIDTH, RXID_SETWINPOS,
  17.        RXID_TESTOKBUTTON, RXID_DELAY,
  18.        RX_COMMANDCOUNT };
  19.  
  20. extern struct ARexxCommand *FreshBarARexxCommandList[];
  21.  
  22. class FreshBarARexxPortC : public ARexxPortC
  23. {
  24.   typedef ARexxPortC inherited;
  25. private:
  26.   // ## private methods ##
  27.   BOOL RX_Quit(LONG *args);
  28.   void RX_Info(LONG *args);
  29.   void RX_Test(LONG *args);
  30.   StringC RX_CreateWin(LONG *args);
  31.   void RX_DeleteWin(LONG *args);
  32.   void RX_OpenWin(LONG *args);
  33.   void RX_CloseWin(LONG *args);
  34.   StringC RX_AddBar(LONG *args);
  35.   void RX_RemoveBar(LONG *args);
  36.   void RX_CloseAllWindows(LONG *args);
  37.   void RX_SetCurValue(LONG *args);
  38.   void RX_SetMaxValue(LONG *args);
  39.   void RX_SetFillPen(LONG *args);
  40.   void RX_SetBackPen(LONG *args);
  41.   void RX_SetProgressMode(LONG *args);
  42.   void RX_SetWindowWidth(LONG *args);
  43.   void RX_SetWindowPos(LONG *args);
  44.   StringC RX_TestOkButton(LONG *args);
  45.   void RX_Delay(LONG *args);
  46.  
  47. protected:
  48.   // ## protected methods ##
  49.   virtual BOOL dispatchARexxCommand(ULONG arg_ulCmdID,
  50.                                     LONG *arg_alArgArray,
  51.                                     LONG &arg_rlRC,
  52.                                     LONG &arg_rlRC2,
  53.                                     StringC &roResult);
  54. public:
  55.   // ## public methods ##
  56.   FreshBarARexxPortC(char *arg_sPortName)
  57.     : ARexxPortC(arg_sPortName, FreshBarARexxCommandList) {};
  58. };
  59.  
  60.  
  61. #endif // FRESHBAR_AREXXPORT_H
  62.